package cn.bugstack.test;

import cn.bugstack.infrastructure.event.EventPublisher;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * @Author: Zchy
 * @Description: 测试Kafka连通性
 * @DateTime: 12/6/2024 1:11 PM
 **/
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class EventPublishTest {
    @Resource
    private EventPublisher eventPublisher;

    @Test
    public void test() {
        eventPublisher.publish("test","test_message");
    }


}
